<?php

class LoaiHinhKinhdoanhWidget extends CWidget
{
    public $model;
    public $form;
    public $type ='C';
    public function init()
    {
    	$value = '{}';
    	if ($this->model->kinhdoanh != null) {
    		$value = "{'value': '{$this->model->kinhdoanh->ten_loaihinh}','id':{$this->model->kinhdoanh->id}}";
    	}
        $this->render('loaihinhkinhdoanh',array('value'=>$value));
    }
}

?>